{% extends 'base_user_center.html' %}
{% load staticfiles %}
{% block right_content %}
		<div class="right_content clearfix">
				<div class="info_con clearfix">
				<h3 class="common_title2">基本信息</h3>
						<ul class="user_info_list">
							<li><span>用户名：</span>{{ request.session.username }}</li>
                            {% if addr %}
							    <li><span>联系方式：</span>{{ addr.recipient_phone }}</li>
							    <li><span>联系地址：</span>{{ addr.recipient_addr }}</li>
                            {% else %}
                                <li><span>联系方式：</span>无</li>
							    <li><span>联系地址：</span>无</li>
                            {% endif %}
						</ul>
				</div>
				
				<h3 class="common_title2">最近浏览</h3>
				<div class="has_view_list">
                <ul class="goods_type_list clearfix">
			    {% for browsed in browse_li %}
                    <li>
                        <a href="/goods/{{ browsed.goods.id }}/"><img src="{% static browsed.goods.goods_image %}"></a>
                        <h4><a href="/goods/{{ browsed.goods.id }}/">{{ browsed.goods.goods_name }}</a></h4>
                        <div class="operate">
                            <span class="prize">￥{{ browsed.goods.goods_price }}</span>
                            <span class="unit">{{ browsed.goods.goods_price }}/{{ browsed.goods.goods_unite }}</span>
                            <a href="#" class="add_goods" title="加入购物车"></a>
                        </div>
                    </li>
                {% endfor %}
			</ul>
		</div>
		</div>
{% endblock right_content %}